package io.gitee.hchaojie.day08.thread.exam;

public class TestCP {
    public static void main(String[] args) {
        Factory factory = new Factory();

        Producer producer = new Producer(factory);
        Producer producer1 = new Producer(factory);
        Consumer consumer1 = new Consumer(factory);
//        Consumer consumer2 = new Consumer(factory);

        producer.start();
        // producer1.start();
        consumer1.start();
//        consumer2.start();
    }
}
